package com.lhn.service;

import com.lhn.entity.Order;

import java.util.List;

/**
 * @author lhn
 * @date 2024-10-14 17:30
 */

public interface OrderService {
    void save(Order order);
    List<Order> findAll(int index, int limit);
    List<Order> findAllByUid(long uid, int index, int limit);
    int count();
    int countByUid(long uid);
    List<Order> findAllByState(int state, int index, int limit);
    int countByState(int state);
    void updateState(long id, int state);
    List<Order> findAllState(int index, int limit);
}
